package org.jeecg.modules.pipe.service;

import org.jeecg.modules.pipe.entity.CraftDevice;
import org.jeecg.modules.pipe.entity.CraftInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 工艺图
 * @Author: jeecg-boot
 * @Date:   2024-06-04
 * @Version: V1.0
 */
public interface ICraftInfoService extends IService<CraftInfo> {

	/**
	 * 添加一对多
	 *
	 * @param craftInfo
	 * @param craftDeviceList
	 */
	public void saveMain(CraftInfo craftInfo,List<CraftDevice> craftDeviceList) ;
	
	/**
	 * 修改一对多
	 *
	 * @param craftInfo
	 * @param craftDeviceList
	 */
	public void updateMain(CraftInfo craftInfo,List<CraftDevice> craftDeviceList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
